const { db, command, cloud } = require(':share/webServer')
const useMidware = require(':utils/useMidware')

async function viewPrizes(ctx, next)
{
    let rsp = await db.collection('Prizes').get()
    ctx.body = rsp.data
}
useMidware.post('/modules/adminPage/managePrize/viewPrizes', viewPrizes)
